package com.tuo51.observation.vo.observation;

import com.tuo51.observation.domain.ObservatePoint;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class ObservationVO {
    private String id;

    private String dimensionId;

    private String dimensionName;

    private Integer month = 0;

    private Integer indexOnPaper = 0;

    private String title;

    private String tools;

    private String activity;

    private String observation;

    private Boolean advance = false;

    private List<ObservationOptionVO> options;

    public static ObservationVO of(ObservatePoint observation){
        ObservationVO vo = new ObservationVO();

        BeanUtils.copyProperties(observation, vo);

        return vo;
    }
}
